\documentclass[11pt]{report}%
\usepackage{emp}
\usepackage{graphicx}%
\usepackage{listings}
\begin{document}

\chapter{yyyy}
\label{chap:rrr}

\section{2007-34-34}
\label{sec:666}

\begin{empfile}[fff]
  \begin{emp}[smile](5,5)

    pair A, B, C;

    A:=(0,0); B:=(1cm,0); C:=(0,1cm);

    draw A--B--C;

  \end{emp}
\end{empfile}
\immediate\write18{mpost -tex=latex fff.mp}





\begin{empfile}[aaa]

   \begin{emp}[smile](5,5)

     pair A, B, C; 

A:=(0,0); B:=(1cm,0); C:=(0,1cm);

    draw A--B--C;

   \end{emp}




\end{empfile}

\empuse{smile}


\begin{lstlisting}
#include<stido.h>
asdfsadf
asdfasdf
sadfd d df da4e egf 


\end{lstlisting}

\end{document}
